-- GENERATED SPELL FOR [Aldor Gryphon Guard] --


function spell0_22077(pUnit, Event) --@Stormhammer,n/a--
pUnit:FullCastSpellOnTarget(38279,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22077', 17000, 1)
end

function Sorts_22077(pUnit, Event)
local choix_sorts_22077 = math.random(0, 0)
if choix_sorts_22077 == 0 then
pUnit:RegisterEvent('spell0_22077', 1, 1)
end
end

function mob22077_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22077', math.random(1500, 3000), 1)
end

function mob22077_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22077_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22077_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22077, 1, 'mob22077_Action')
RegisterUnitEvent(22077, 2, 'mob22077_Leave')
RegisterUnitEvent(22077, 3, 'mob22077_Kill')
RegisterUnitEvent(22077, 4, 'mob22077_Die')
